﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain;
using Service.Interface;
using Dao.Interface;

namespace Service
{
    public class LogService : Service<LogMessage>, ILogService
    {
        /// <summary>
        /// 获取日志分页集合
        /// </summary>
        /// <param name="pageIndex">页索引</param>
        /// <param name="pageSize">页大小</param>
        /// <param name="pageCount">总页数</param>
        /// <returns></returns>
        public IList<LogMessage> LoadAllLogByPage(int pageIndex, int pageSize, out int pageCount)
        {
            return ((ILogRepository)(this.CurrentRepository)).LoadAllLogByPage(pageIndex, pageSize, out pageCount).ToList();
        }
    }
}
